<?php
include_once('generic.php');
include_once('config.php');
include_once(PAGES.'BasePage.php');

include_once(CLASSES.'ClassBase.php');
include_once(CLASSES.'DB.php');
include_once(CLASSES.'Factory.php');
include_once(CLASSES.'Controller.php');
include_once(CLASSES.'Ajax.php');

include_once(UPDATER.'DatatypeTable.php');
include_once(UPDATER.'Updater.php');


include_once(TABLES.'TableBase.php');
include_once(TABLES.'_Page.php');

//TODO Add Autoloader For Tables

error_reporting(E_ALL ^ E_NOTICE);
ini_set('memory_limit', '5M');
ini_set('output_buffering', 0);
//ini_set('implicit_flush', 1);


$controller = new Controller();
ob_start(array($controller, 'templateContent'));
$controller->init();
ob_end_flush();

?>
